/**************************************************************************/
/*                                                                        */
/* Copyright (c) Intson Technology Co.,Ltd.           */
/*  */
/*                                                                        */
/*                                                                        */
/*    created:    2009-4-9                                             */ 
/*    filename:   TstSHImageApp.cpp                                          */ 
/*    author:     Derek Huang                                                  */  
/*    purpose:                                                            */ 
/*                                                                        */
/* ************************************************************************/
#include "TstSHImageApp.h"

CTstSHImageApp TstSHImageApp;

CTstSHImageApp::CTstSHImageApp()
{
	m_pMainWin = NULL;
}
CTstSHImageApp::~CTstSHImageApp()
{
	CoUninitialize();	
}
BOOL CTstSHImageApp::Init()
{
	CoInitializeEx(NULL, COINIT_MULTITHREADED );
	int cx,cy;
	cx = GetSystemMetrics(SM_CXSCREEN);
	cy = GetSystemMetrics(SM_CYSCREEN);

//	m_tmp.InitImage();

	m_pMainWin = new CTstSHImageWnd();
	if( m_pMainWin )
	{
		if(m_pMainWin->Create(0, 0, 800, 480, 0, 0, 0, 0))
		{
			m_pMainWin->Show();
			return TRUE;
		}
		else
		{
			return FALSE;
		}	
	}
	else
	{
		return FALSE;
	}
	return CMzApp::Init();
	
	
}
